package com.hzlx;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class BomsDto {
    private static final long serialVersionUID = 1L;

    /** 物料清单id */
    private Long bomId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    private String productName;

    /** BOM版本号 */
    @Excel(name = "BOM版本号")
    private String bomVersion;

    /** BOM状态 */
    @Excel(name = "BOM状态")
    private String bomStatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setBomId(Long bomId)
    {
        this.bomId = bomId;
    }

    public Long getBomId()
    {
        return bomId;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }

    public void setBomVersion(String bomVersion)
    {
        this.bomVersion = bomVersion;
    }

    public String getBomVersion()
    {
        return bomVersion;
    }

    public void setBomStatus(String bomStatus)
    {
        this.bomStatus = bomStatus;
    }

    public String getBomStatus()
    {
        return bomStatus;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("bomId", getBomId())
                .append("productId", getProductId())
                .append("bomVersion", getBomVersion())
                .append("bomStatus", getBomStatus())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .toString();
    }
}
